home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / devtools / automake-1.0.tar.gz / automake-1.0.tar / automake-1.0 / tests / empty.test < prev    next >
Text File  |  1996-03-16  |  659b  |  30 lines

  1. #! /bin/sh
  2.  
  3. # Test for bug where if the list of installables is empty, invalid sh
  4. # code is generated.
  5.  
  6. . $srcdir/defs || exit 1
  7.  
  8. cat > Makefile.am << 'END'
  9. data_DATA =
  10. END
  11.  
  12. $AUTOMAKE || exit 1
  13.  
  14. # Create configure so Makefile doesn't look out-of-date.
  15. echo frob > configure
  16. echo frob > config.status
  17.  
  18. # Need a mkinstalldirs we can actually execute.  make on my Linux box
  19. # won't execute this file if is empty, or has just a colon in it (but
  20. # it will run from the shell).
  21. cat > mkinstalldirs << 'END'
  22. #!/bin/sh
  23. END
  24. chmod +x mkinstalldirs
  25.  
  26. # Substitute variables we need.
  27. sed -e 's/@top_srcdir@/./g' -e 's/@datadir@/./g' < Makefile.in > Makefile
  28.  
  29. make install
  30.